﻿using System;
using BLL;

public partial class ANTProductAssemble_ViewAssemble_TPIMTestViewbySN : System.Web.UI.Page
{
    TPIMTest ams;
    TPIMTestItem amsi;

    public ANTProductAssemble_ViewAssemble_TPIMTestViewbySN()
    {
        ams = new TPIMTest();
        amsi = new TPIMTestItem();
    }

    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        string productSN = this.TextBox1.Text.Trim();
        this.GridView1.DataSource = ams.GetTPIMTestbySN(productSN);
        this.GridView1.DataBind();
        this.GridView2.DataSource = amsi.GetTPIMTestItembySN(productSN);
        this.GridView2.DataBind();
    }
}
